<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'locationcontacts-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'custno'); ?>
                <div class="model-data">
                    <?php echo $model->custno; ?>
                </div>
		
                <?php echo $form->hiddenField($model,'custno'); ?>
		<?php echo $form->error($model,'custno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'locno'); ?>
                <div class="model-data">
                    <?php echo $model->locno; ?>
                </div>
		<?php echo $form->hiddenField($model,'locno'); ?>
		<?php echo $form->error($model,'locno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contact'); ?>
		<?php echo $form->textField($model,'contact',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'contact'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>1000)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phoneoffice'); ?>
		<?php echo $form->textField($model,'phoneoffice',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'phoneoffice'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phonemobile'); ?>
		<?php echo $form->textField($model,'phonemobile',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'phonemobile'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phonefax'); ?>
		<?php echo $form->textField($model,'phonefax',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'phonefax'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'extension'); ?>
		<?php echo $form->textField($model,'extension',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'extension'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'salutation'); ?>
		<?php echo $form->textField($model,'salutation',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'salutation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'jobtitle'); ?>
		<?php echo $form->textField($model,'jobtitle',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'jobtitle'); ?>
	</div>


	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->